package collection;

import com.google.common.collect.ForwardingListIterator;

import java.util.*;

public class TestList {

    public static void main(String[] args) {

        List<String> list = new ArrayList<>();
        Iterator<String> iterator = list.iterator();
        iterator.hasNext();

        LinkedList<String> list1 = new LinkedList();

        // 尾部插入
        list1.add("sdf");
        System.out.println(list1.get(0));




        /*
        * queue: 先进先出 offer poll peek
        * stack: 先进后出 push pop peek
        * list: add remove
        *
        * */

    }
}

